package com.zy.edu.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-28
 */
@TableName("course_chapter_exercises_stu")
@Data
public class CourseChapterExercisesStu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 学生id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 课时id
     */
    @TableField("chapter_id")
    private String chapterId;
    /**
     * 题号
     */
    @TableField("exercise_id")
    private Integer exerciseId;
    /**
     * 学生的答案
     */
    private String answer;
    /**
     * 该题是否正确，1 正确，0 错误
     */
    private Integer result;
    @TableField("create_time")
    @JSONField(format="yyyy-MM-dd hh:mm:ss")
    private Date createTime;


}
